'''
Author       : Deng
Date         : 2024-04-18 16:05:20
LastEditors: Joel
LastEditTime: 2025-04-09 12:08:28
FilePath: /gd32f303cct6/programe.py
Description  : 
Copyright 2024 YiJiaLink, All Rights Reserved. 
2024-04-18 16:05:20
'''

import os
cmd = 'JFlashExe -openprjGD32F303CCT6.jflash -connect -openbuild/app.hex -erasechip -programverify -startapplication -exit'
res = os.popen(cmd)
output_str = res.read()   # 获得输出字符串
print(output_str)
